import { NgModule, ErrorHandler } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';
import { MyApp } from './app.component';


import { TabsPage } from '../pages/tabs/tabs';

import { StatusBar } from '@ionic-native/status-bar';
import { SplashScreen } from '@ionic-native/splash-screen';
import { ParkMapPage } from '../pages/park-map/park-map';
import { ParkListPage } from '../pages/park-list/park-list';
import { ParkDataProvider } from '../providers/park-data/park-data';
import {  HttpClientModule } from '@angular/common/http';
import { ParkDetailPage } from '../pages/park-detail/park-detail';
import { AboutPage } from '../pages/about/about';
import { ParkSidemenuPage } from '../pages/park-sidemenu/park-sidemenu';

@NgModule({
  declarations: [
    MyApp,
    ParkListPage,
    ParkMapPage,
    TabsPage,
    ParkDetailPage,
    AboutPage,
    ParkSidemenuPage
  ],
  imports: [
    HttpClientModule,
    BrowserModule,
    IonicModule.forRoot(MyApp)
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,
    ParkListPage,
    ParkMapPage,
    TabsPage,
    ParkDetailPage,
    AboutPage,
    ParkSidemenuPage
  ],
  providers: [
    StatusBar,
    SplashScreen,
    {provide: ErrorHandler, useClass: IonicErrorHandler},
    ParkDataProvider
  ]
})
export class AppModule {}
